/**
 * App Global Config
 * @type {string}
 *
 * WEB_SOCKET:公共websocket请求
 * COMMPT_REQPATH:公共http请求
 * QQMAPSDK_KEY:定位sdk key
 * ACCESS_TOKEN:业务系统请求TOKEN
 * REFRESH_TOKEN:业务系统请求REFRESH_TOKEN
 * USER_ID:业务系统用户标识
 * LOC_LATITUDE:定位纬度
 * LOC_LONGITUDE:定位经度
 * TIME_OUT:请求超时
 */

//生产
const VERSION_PRO = '0.0.6';
const APP_NAME_PRO = 'yqsh-wx-0.0.6';
const config_pro = {
    VERSION: VERSION_PRO,
    COMPANY: 'YQSH PRO',
    POSSESSOR: 'TanBo',
    WEB_ROOT: 'https://www.zgyqsh.cn',
    WEB_SOCKET: 'wss://www.zgyqsh.cn/' + APP_NAME_PRO + '/websocket',
    COMMPT_REQPATH: 'https://www.zgyqsh.cn/' + APP_NAME_PRO + '/miniApp/wx',
    QQMAPSDK_KEY: '24KBZ-DJYCP-3GGDF-VVICU-AAGDK-72BAU',
    ACCESS_TOKEN: 'COMMPT_ACCESS_TOKEN',
    REFRESH_TOKEN: 'COMMPT_REFRESH_TOKEN',
    USER_ID: 'USER_ID',
    LOC_LATITUDE: 'LOC_LATITUDE',
    LOC_LONGITUDE: 'LOC_LONGITUDE',
    TIME_OUT: 30000
}

//开发
const APP_HOST_DEV = 'localhost:8070';
const VERSION_DEV = '0.0.6';
const APP_NAME_DEV = 'yqsh-wx-0.0.6';
const config_dev = {
    VERSION: VERSION_DEV,
    COMPANY: 'YQSH DEV',
    POSSESSOR: 'TanBo',
    WEB_ROOT: 'https://www.zgyqsh.cn',
    WEB_SOCKET: 'ws://' + APP_HOST_DEV + '/' + APP_NAME_DEV + '/websocket',
    COMMPT_REQPATH: 'http://' + APP_HOST_DEV + '/' + APP_NAME_DEV + '/miniApp/wx',
    QQMAPSDK_KEY: '24KBZ-DJYCP-3GGDF-VVICU-AAGDK-72BAU',
    ACCESS_TOKEN: 'COMMPT_ACCESS_TOKEN',
    REFRESH_TOKEN: 'COMMPT_REFRESH_TOKEN',
    USER_ID: 'USER_ID',
    LOC_LATITUDE: 'LOC_LATITUDE',
    LOC_LONGITUDE: 'LOC_LONGITUDE',
    TIME_OUT: 30000
}


module.exports = config_pro;